#include <stdio.h>
#define TOTAL 6

int main(){
    double weight[TOTAL] = {3, 5, 1, 3.4, 2, 50};
    double weight_total = 0;

    for(int i = 0; i < TOTAL; i++){
        weight_total += weight[i];
    }

    printf("总重：%lf,均重：%lf\n", weight_total, weight_total / TOTAL);

    return 0;
}